<?php
/**
 * Edit/create a group wrapper
 *
 * @uses $vars['entity'] ElggGroup object
 */
$entity = elgg_extract ( 'entity', $vars, null );
$type_add = elgg_extract ( 'addtype', $vars, null );

$form_vars = array (
		'enctype' => 'multipart/form-data',
		'class' => 'elgg-form-alt' 
);
if ($type_add) {
	$body_vars = array (
			'entity' => $entity,
			'typeadd' => $type_add 
	);
} else {
	$body_vars = array (
			'entity' => $entity 
	);
}

echo elgg_view_form ( 'groups/editgroup', $form_vars, $body_vars );


